package com.codefarm.phone.mtsh.doctor.bean;

import java.io.File;

import com.codefarm.phone.mtsh.doctor.Constant;

import fay.frame.tools.Bean;
import fay.frame.tools.CocoType;

/**
 * 用户实体
* @Title: BeanPerson.java
* @Package com.gzedu.iqismobile.bean
* @Description: TODO
* @company:		代码农场
* @author :		Eriksson
* @date 2014-7-30 下午5:17:04
* @version V1.0
 */
public class BeanPerson extends Bean {
	
	private static final long	serialVersionUID	= 7117525778943260564L;
	
	/**
	 * 参数字段：用户名
	 */
	public static final String PARAM_USER_CODE = "userCode";
	/**
	 * 参数字段：加密后的密码
	 */
	public static final String PARAM_USER_PASSWROD = "userPsw";
	/**
	 * 参数字段：用户id
	 */
	public static final String PARAM_USER_ID = "USER_ID";
	/**
	 * 参数字段：手机号
	 */
	public static final String PARAM_MOBILE_PHONE = "MOBILE_PHONE";
	/**
	 * 参数字段：邮箱
	 */
	public static final String PARAM_EMAIL = "EMAIL";
	/**
	 * 参数字段：通信地址
	 */
	public static final String PARAM_CORR_ADDRESS = "CORR_ADDRESS";
	/**
	 * 参数字段：用户头像二进制数据
	 */
	public static final String PARAM_PHOTO_PATH = "photoPath";
	
	/**
	 * 数据字段：登录验证状态(Y/N)
	 */
	public static final String COLUMN_LOGIN = "LOGIN";
	/**
	 * 数据字段：学员ID
	 */
	public static final String COLUMN_USER_ID = "USER_ID";
	/**
	 * 数据字段：真实姓名
	 */
	public static final String COLUMN_REALNAME = "REALNAME";
	/**
	 * 数据字段：登录用户名
	 */
	public static final String COLUMN_USER_CODE = "USER_CODE";
	/**
	 * 数据字段：学号
	 */
	public static final String COLUMN_TEACHER_ID = "TEACHER_ID";
	/**
	 * 数据字段：学段
	 */
	public static final String COLUMN_GRADE = "GRADE";
	/**
	 * 数据字段：学科
	 */
	public static final String COLUMN_SUBJECT = "SUBJECT";
	/**
	 * 数据字段：手机
	 */
	public static final String COLUMN_MOBILE_PHONE = "MOBILE_PHONE";
	/**
	 * 数据字段：电子邮件
	 */
	public static final String COLUMN_EMAIL = "EMAIL";
	/**
	 * 数据字段：通信地址
	 */
	public static final String COLUMN_CORR_ADDRESS = "CORR_ADDRESS";
	/**
	 * 数据字段：个人头像路径地址
	 */
	public static final String COLUMN_PHOTO_PATH = "PHOTO_PATH";
	
	private boolean login;
	private String userId;
	private String realname;
	private String userCode;
	private String teacherId;
	private String grade;
	private String subject;
	private String mobilePhone;
	private String email;
	private String corrAddress;
	@CocoType("ImageView")
	private String photoPath;
	private File photoPathFile;
	
	/**
	 * 登录验证状态(Y/N)
	 * @return
	 */
	public String getLogin(){
		return login?Constant.CODE.STATUS_Y:Constant.CODE.STATUS_N;
	}
	/**
	 * 登录验证状态
	 * @return
	 */
	public boolean isLogin() {
		return login;
	}
	/**
	 * 登录验证状态(Y/N)
	 * @return
	 */
	public void setLogin(String login) {
		this.login = Constant.CODE.STATUS_Y.equals(login);
	}
	/**
	 * 登录验证状态
	 * @return
	 */
	public void setLogin(boolean login) {
		this.login = login;
	}
	/**
	 * 学员ID
	 * @return
	 */
	public String getUserId() {
		return userId;
	}
	/**
	 * 学员ID
	 * @return
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}
	/**
	 * 真实姓名
	 * @return
	 */
	public String getRealname() {
		return realname;
	}
	/**
	 * 真实姓名
	 * @return
	 */
	public void setRealname(String realname) {
		this.realname = realname;
	}
	/**
	 * 登录用户名
	 * @return
	 */
	public String getUserCode() {
		return userCode;
	}
	/**
	 * 登录用户名	
	 * @return
	 */
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	/**
	 * 学号
	 * @return
	 */
	public String getTeacherId() {
		return teacherId;
	}
	/**
	 * 学号
	 * @return
	 */
	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}
	/**
	 * 学段
	 * @return
	 */
	public String getGrade() {
		return grade;
	}
	/**
	 * 学段
	 * @return
	 */
	public void setGrade(String grade) {
		this.grade = grade;
	}
	/**
	 * 学科
	 * @return
	 */
	public String getSubject() {
		return subject;
	}
	/**
	 * 学科
	 * @return
	 */
	public void setSubject(String subject) {
		this.subject = subject;
	}
	/**
	 * 手机
	 * @return
	 */
	public String getMobilePhone() {
		return mobilePhone;
	}
	/**
	 * 手机
	 * @return
	 */
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	/**
	 * 电子邮件
	 * @return
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * 电子邮件
	 * @return
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * 通信地址
	 * @return
	 */
	public String getCorrAddress() {
		return corrAddress;
	}
	/**
	 * 通信地址
	 * @return
	 */
	public void setCorrAddress(String corrAddress) {
		this.corrAddress = corrAddress;
	}
	/**
	 * 个人头像路径地址
	 * @return
	 */
	public String getPhotoPath() {
		return photoPath;
	}
	/**
	 * 个人头像路径地址
	 * @return
	 */
	public void setPhotoPath(String photoPath) {
		this.photoPath = photoPath;
	}
	/**
	 * 个人头像文件
	 * @return
	 */
	public File getPhotoPathFile() {
		return photoPathFile;
	}
	/**
	 * 个人头像文件
	 * @param photoPathFile
	 */
	public void setPhotoPathFile(File photoPathFile) {
		this.photoPathFile = photoPathFile;
	}
}
